package com.bwie.student.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.common.domain.Student;
import com.bwie.common.domain.request.StudentRequest;
import com.bwie.common.result.PageResult;
import com.bwie.common.result.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.student.service
 * @Project：zg5_19
 * @name：StudentService
 * @Date：2024/2/17 8:59
 */
public interface StudentService extends IService<Student> {

    /**
     * 列表分页
     * @param studentRequest
     * @return
     */
    Result<PageResult<Student>> studentList(StudentRequest studentRequest);
    /**
     * 新增学生
     */
    Result<Student> addStudentList(Student student);
    /**
     * 删除
     * @param studentId
     * @return
     */
    Result delStudent(@Param("studentId") Integer studentId);
    /**
     * 上传图片
     * @param multipartFile
     * @return
     */
    Result fastUpload(MultipartFile multipartFile);


    Result<List<Student>> studentLists();
    /**
     * 修改
     */
    Result<Student> updStudent(Student student);

    /**
     * 编辑
     */
    Result<Student> findByStudent(Integer studentId);

    /**
     * 班级下拉框
     * @return
     */
    Result clazzList();
    /**
     * 删除 学生
     * @param studentId
     * @return
     */
    Result deleteStudent(Integer studentId);
}
